#include <iostream>  

using namespace System;
using namespace System::Runtime::InteropServices;

#pragma unmanaged  

// Declare an unmanaged function type that takes two int arguments  
// Note the use of __stdcall for compatibility with managed code  
typedef int(__stdcall *AUTHCB)(int, int);

AUTHCB g_auth_cb = NULL;

int setCallBackAuth(AUTHCB fp) {
	printf_s("[unmanaged] got callback address, calling it...\n");
	g_auth_cb = fp;
}
